use "...\Benchmark 1998-2015.dta"

***Table 1 - Baseline model before and during the crisis
xtreg votesgov lagvotesgov wunemp wdeltaunemp deltaturnout enep disproportionality  coalition if crisis==0, mle

xtreg votesgov lagvotesgov wunemp wdeltaunemp deltaturnout enep disproportionality coalition if crisis==1, mle


**compare the avg prediction at mean values of the covariates
margins, atmeans


***Table 2a - 3a (Kayser-Peress)


***AVG

xtreg votesgov lagvotesgov wavg benchwavg wdeltaavg benchwdeltaavg deltaturnout enep disproportionality coalition if crisis==0, mle
estat ic

xtreg votesgov lagvotesgov wavg benchwavg wdeltaavg benchwdeltaavg deltaturnout enep disproportionality coalition if crisis==1, mle
estat ic



**MED

xtreg votesgov lagvotesgov wmed benchwmed wdeltamed benchwdeltamed deltaturnout enep disproportionality coalition if crisis==0, mle
estat ic

xtreg votesgov lagvotesgov wmed benchwmed wdeltamed benchwdeltamed deltaturnout enep disproportionality coalition if crisis==1, mle
estat ic



**MIN

xtreg votesgov lagvotesgov wmin benchwmin wdeltamin benchwdeltamin deltaturnout enep disproportionality coalition if crisis==0, mle
estat ic

xtreg votesgov lagvotesgov wmin benchwmin wdeltamin benchwdeltamin deltaturnout enep disproportionality coalition if crisis==1, mle
estat ic



**MAX

xtreg votesgov lagvotesgov wmax benchwmax wdeltamax benchwdeltamax deltaturnout enep disproportionality coalition if crisis==0, mle
estat ic

xtreg votesgov lagvotesgov wmax benchwmax wdeltamax benchwdeltamax deltaturnout enep disproportionality coalition if crisis==1, mle
estat ic



**MIX

xtreg votesgov lagvotesgov wmix benchwmix wdeltamix benchwdeltamix deltaturnout enep disproportionality coalition if crisis==0, mle
estat ic

xtreg votesgov lagvotesgov wmix benchwmix wdeltamix benchwdeltamix deltaturnout enep disproportionality coalition if crisis==1, mle
estat ic

**DUNEMP (inverse distance)

xtreg votesgov lagvotesgov wdunemp benchwdunemp wdeltadunemp benchwdeltadunemp deltaturnout enep disproportionality coalition if crisis==0, mle
estat ic

xtreg votesgov lagvotesgov wdunemp benchwdunemp wdeltadunemp benchwdeltadunemp deltaturnout enep disproportionality coalition if crisis==1, mle
estat ic


**BUNEMP (trade-based)

xtreg votesgov lagvotesgov wbunemp benchwbunemp wdeltabunemp benchwdeltabunemp deltaturnout enep disproportionality coalition if crisis==0, mle
estat ic

xtreg votesgov lagvotesgov wbunemp benchwbunemp wdeltabunemp benchwdeltabunemp deltaturnout enep disproportionality coalition if crisis==1, mle
estat ic



***PCA cor

xtreg votesgov lagvotesgov wpcacor benchwpcacor wdeltapcacor benchwdeltapcacor deltaturnout enep disproportionality coalition if crisis==0, mle
estat ic

xtreg votesgov lagvotesgov wpcacor benchwpcacor wdeltapcacor benchwdeltapcacor deltaturnout enep disproportionality coalition if crisis==1, mle
estat ic



** Table 2b (Arel-Bundock, Blais and Dassonneville )
xtreg votesgov lagvotesgov wavg wunemp wdeltaavg wdeltaunemp deltaturnout enep disproportionality coalition if crisis==0, mle

xtreg votesgov lagvotesgov wmed wunemp wdeltamed wdeltaunemp deltaturnout enep disproportionality coalition if crisis==0, mle

xtreg votesgov lagvotesgov wmin wunemp wdeltamin wdeltaunemp deltaturnout enep disproportionality coalition if crisis==0, mle

xtreg votesgov lagvotesgov wmax wunemp wdeltamax wdeltaunemp deltaturnout enep disproportionality coalition if crisis==0, mle

xtreg votesgov lagvotesgov wmix wunemp wdeltamix wdeltaunemp deltaturnout enep disproportionality coalition if crisis==0, mle

xtreg votesgov lagvotesgov wpcacor wunemp wdeltapcacor wdeltaunemp deltaturnout enep disproportionality coalition if crisis==0, mle

xtreg votesgov lagvotesgov wdunemp wunemp wdeltadunemp wdeltaunemp deltaturnout enep disproportionality coalition if crisis==0, mle

xtreg votesgov lagvotesgov wbunemp wunemp wdeltabunemp wdeltaunemp deltaturnout enep disproportionality coalition if crisis==0, mle


**Table 3b (Arel-Bundock, Blais and Dassonneville )
xtreg votesgov lagvotesgov wavg wunemp wdeltaavg wdeltaunemp deltaturnout enep disproportionality coalition if crisis==1, mle

xtreg votesgov lagvotesgov wmed wunemp wdeltamed wdeltaunemp deltaturnout enep disproportionality coalition if crisis==1, mle

xtreg votesgov lagvotesgov wmin wunemp wdeltamin wdeltaunemp deltaturnout enep disproportionality coalition if crisis==1, mle

xtreg votesgov lagvotesgov wmax wunemp wdeltamax wdeltaunemp deltaturnout enep disproportionality coalition if crisis==1, mle

xtreg votesgov lagvotesgov wmix wunemp wdeltamix wdeltaunemp deltaturnout enep disproportionality coalition if crisis==1, mle

xtreg votesgov lagvotesgov wpcacor wunemp wdeltapcacor wdeltaunemp deltaturnout enep disproportionality coalition if crisis==1, mle

xtreg votesgov lagvotesgov wdunemp wunemp wdeltadunemp wdeltaunemp deltaturnout enep disproportionality coalition if crisis==1, mle

xtreg votesgov lagvotesgov wbunemp wunemp wdeltabunemp wdeltaunemp deltaturnout enep disproportionality coalition if crisis==1, mle



**alternative only level
xtreg votesgov lagvotesgov wavg wunemp deltaturnout enep disproportionality coalition if crisis==0, mle

xtreg votesgov lagvotesgov wmed wunemp deltaturnout enep disproportionality coalition if crisis==0, mle

xtreg votesgov lagvotesgov wmin wunemp deltaturnout enep disproportionality coalition if crisis==0, mle

xtreg votesgov lagvotesgov wmax wunemp deltaturnout enep disproportionality coalition if crisis==0, mle

xtreg votesgov lagvotesgov wmix wunemp deltaturnout enep disproportionality coalition if crisis==0, mle

xtreg votesgov lagvotesgov wpcacor wunemp deltaturnout enep disproportionality coalition if crisis==0, mle

xtreg votesgov lagvotesgov wdunemp wunemp deltaturnout enep disproportionality coalition if crisis==0, mle

xtreg votesgov lagvotesgov wbunemp wunemp deltaturnout enep disproportionality coalition if crisis==0, mle


xtreg votesgov lagvotesgov wavg wunemp deltaturnout enep disproportionality coalition if crisis==1, mle

xtreg votesgov lagvotesgov wmed wunemp deltaturnout enep disproportionality coalition if crisis==1, mle

xtreg votesgov lagvotesgov wmin wunemp deltaturnout enep disproportionality coalition if crisis==1, mle

xtreg votesgov lagvotesgov wmax wunemp deltaturnout enep disproportionality coalition if crisis==1, mle

xtreg votesgov lagvotesgov wmix wunemp deltaturnout enep disproportionality coalition if crisis==1, mle

xtreg votesgov lagvotesgov wpcacor wunemp deltaturnout enep disproportionality coalition if crisis==1, mle

xtreg votesgov lagvotesgov wdunemp wunemp deltaturnout enep disproportionality coalition if crisis==1, mle

xtreg votesgov lagvotesgov wbunemp wunemp deltaturnout enep disproportionality coalition if crisis==1, mle



